﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Frame.Lib.Utilities;
using Frame.Lib.Common;


namespace Frame.Web.Common.Master
{
    public partial class PopTree : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            js.Text = "<script type='text/javascript' src='" + GlobalVar.WebAppPath + "Common/js/jquery/jquery-1.4.4.js' ></script>";

            js.Text += "<script src='" + GlobalVar.WebAppPath + "Common/Js/zTree/jquery.ztree.core-3.2.js' type='text/javascript'></script>";
            js.Text += "<script src='" + GlobalVar.WebAppPath + "Common/Js/zTree/jquery.ztree.excheck-3.2.js' type='text/javascript'></script>";

            js.Text += "<script type='text/javascript' src='" + GlobalVar.WebAppPath + "common/js/common.js' ></script>";

            js.Text += "<script type='text/javascript' src='" + GlobalVar.WebAppPath + "Common/Js/treeview.js'></script>";
                                                                                        

            JSUtil.SetDivHeight("tree", 72);

            object btn = this.ContentPlaceHolder3.FindControl("btnSave");
            if (btn != null)
            {
                this.Page.Form.DefaultButton = ((Control)btn).UniqueID;
            }

            Response.Buffer = true;
        }
    }
}
